
<table class="table table-striped">
    <thead>
    <tr>
        <td>ID</td>
        <td>标题</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.id}</td>

        <td>{$item.title}</td>
        <td>

            <a href="javascript:void(0)" class="btn btn-primary btn-sm" data-toggle="confirm" data-title="还原"
               data-content="确定要还原吗？"
               data-url="{:url('reduction',array('id'=>$item['id']))}">还原</a>
            <a href="javascript:void(0)" class="btn btn-danger btn-sm" data-toggle="confirm" data-title="删除"
               data-content="确定要彻底删除吗？删除后不可恢复"
               data-url="{:url('deletes',array('id'=>$item['id']))}">彻底删除</a>

        </td>
    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$list->render()}
    </div>
</div>
<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>
<script type="application/javascript">
    $(function () {

        //获取分类
        $("#category-selector").select2({
            placeholder: "选择轮播类型",
            allowClear: true
        });
    });
</script>